﻿using System;
using System.Collections.Generic;
using RikaScript.Exception;
using RikaScript.Libs.Base;

namespace RikaScript.Libs
{
    [Library(Name = "time", Version = "v0.1.0")]
    public class TimeLib : ScriptLibBase
    {
        [Method(Help = "获取时间戳")]
        public object time()
        {
            var ts = DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0, 0);
            return ts.TotalSeconds;
        }
    }
}